package com.nanrui.mutualinductor.data;

import android.os.Parcel;
import android.os.Parcelable;

import org.json.JSONObject;


public class CurrentTransformer
        extends Device
{
    public static final Parcelable.Creator<CurrentTransformer> CREATOR = new Parcelable.Creator()
    {
        public CurrentTransformer createFromParcel(Parcel paramAnonymousParcel)
        {
            return new CurrentTransformer(paramAnonymousParcel);
        }

        public CurrentTransformer[] newArray(int paramAnonymousInt)
        {
            return new CurrentTransformer[paramAnonymousInt];
        }
    };
    private static final long serialVersionUID = -8597906250248751761L;
    private int cap;
    private long chkDate;
    private String fstRcCode;
    private String insulationMode;
    private int itId;
    private int pf;
    private String ratedFreqCode;
    private String rcRatioCode;
    private int rotateCycle;
    private String rvCode;
    private String sndRvCode;
    private int taLightLoad;
    private String taPreCode;
    private int taRatedSndLoad;
    private int taTurns;
    private int tvLightLoad;
    private String tvPreCode;
    private int tvRatedSndLoad;
    private int tvTurns;
    private String voltRatioCode;
    private String windingConfigCode;

    public CurrentTransformer() {}

    protected CurrentTransformer(Parcel paramParcel)
    {
        super(paramParcel);
        this.itId = paramParcel.readInt();
        this.insulationMode = paramParcel.readString();
        this.windingConfigCode = paramParcel.readString();
        this.rvCode = paramParcel.readString();
        this.ratedFreqCode = paramParcel.readString();
        this.pf = paramParcel.readInt();
        this.cap = paramParcel.readInt();
        this.rcRatioCode = paramParcel.readString();
        this.sndRvCode = paramParcel.readString();
        this.fstRcCode = paramParcel.readString();
        this.taRatedSndLoad = paramParcel.readInt();
        this.taLightLoad = paramParcel.readInt();
        this.taPreCode = paramParcel.readString();
        this.taTurns = paramParcel.readInt();
        this.voltRatioCode = paramParcel.readString();
        this.tvRatedSndLoad = paramParcel.readInt();
        this.tvLightLoad = paramParcel.readInt();
        this.tvPreCode = paramParcel.readString();
        this.tvTurns = paramParcel.readInt();
        this.chkDate = paramParcel.readLong();
        this.rotateCycle = paramParcel.readInt();
    }

    public static CurrentTransformer fromJson(JSONObject paramJSONObject)
    {
        if (paramJSONObject == null) {
            return null;
        }
        CurrentTransformer localCurrentTransformer = new CurrentTransformer();
        localCurrentTransformer.setId(paramJSONObject.optInt("id"));
        localCurrentTransformer.setItId(paramJSONObject.optInt("it_id"));
        localCurrentTransformer.setPrOrg(paramJSONObject.optString("pr_org"));
        localCurrentTransformer.setBelongDept(paramJSONObject.optString("belong_dept"));
        localCurrentTransformer.setBarCode(paramJSONObject.optString("bar_code"));
        localCurrentTransformer.setAssetNo(paramJSONObject.optString("asset_no"));
        localCurrentTransformer.setMadeNo(paramJSONObject.optString("made_no"));
        localCurrentTransformer.setSortCode(paramJSONObject.optString("sort_code"));
        localCurrentTransformer.setTypeCode(paramJSONObject.optString("type_code"));
        localCurrentTransformer.setModelCode(paramJSONObject.optString("model_code"));
        localCurrentTransformer.setInsulationMode(paramJSONObject.optString("insulation_mode"));
        localCurrentTransformer.setWindingConfigCode(paramJSONObject.optString("winding_config_code"));
        localCurrentTransformer.setManufacturer(paramJSONObject.optString("manufacturer"));
        localCurrentTransformer.setMadeDate(paramJSONObject.optLong("made_date"));
        localCurrentTransformer.setRvCode(paramJSONObject.optString("rv_code"));
        localCurrentTransformer.setRatedFreqCode(paramJSONObject.optString("rated_freq_code"));
        localCurrentTransformer.setPf(paramJSONObject.optInt("pf"));
        localCurrentTransformer.setCap(paramJSONObject.optInt("cap"));
        localCurrentTransformer.setRcRatioCode(paramJSONObject.optString("rc_ratio_code"));
        localCurrentTransformer.setSndRvCode(paramJSONObject.optString("snd_rv_code"));
        localCurrentTransformer.setFstRcCode(paramJSONObject.optString("fst_rc_code"));
        localCurrentTransformer.setTaRatedSndLoad(paramJSONObject.optInt("ta_rated_snd_load"));
        localCurrentTransformer.setTaLightLoad(paramJSONObject.optInt("ta_light_load"));
        localCurrentTransformer.setTaPreCode(paramJSONObject.optString("ta_pre_code"));
        localCurrentTransformer.setTaTurns(paramJSONObject.optInt("ta_turns"));
        localCurrentTransformer.setVoltRatioCode(paramJSONObject.optString("volt_ratio_code"));
        localCurrentTransformer.setTvRatedSndLoad(paramJSONObject.optInt("tv_rated_snd_load"));
        localCurrentTransformer.setTvLightLoad(paramJSONObject.optInt("tv_light_load"));
        localCurrentTransformer.setTvPreCode(paramJSONObject.optString("tv_pre_code"));
        localCurrentTransformer.setTvTurns(paramJSONObject.optInt("tv_turns"));
        localCurrentTransformer.setChkDate(paramJSONObject.optLong("chk_date"));
        localCurrentTransformer.setRotateCycle(paramJSONObject.optInt("rotate_cycle"));
        localCurrentTransformer.setWiringMode(paramJSONObject.optString("wiring_mode"));
        return localCurrentTransformer;
    }

    public static long getSerialVersionUID()
    {
        return -8597906250248751761L;
    }

    public int describeContents()
    {
        return 0;
    }

    public int getCap()
    {
        return this.cap;
    }

    public long getChkDate()
    {
        return this.chkDate;
    }

    public String getFstRcCode()
    {
        return this.fstRcCode;
    }

    public String getInsulationMode()
    {
        return this.insulationMode;
    }

    public int getItId()
    {
        return this.itId;
    }

    public int getPf()
    {
        return this.pf;
    }

    public String getRatedFreqCode()
    {
        return this.ratedFreqCode;
    }

    public String getRcRatioCode()
    {
        return this.rcRatioCode;
    }

    public int getRotateCycle()
    {
        return this.rotateCycle;
    }

    public String getRvCode()
    {
        return this.rvCode;
    }

    public String getSndRvCode()
    {
        return this.sndRvCode;
    }

    public int getTaLightLoad()
    {
        return this.taLightLoad;
    }

    public String getTaPreCode()
    {
        return this.taPreCode;
    }

    public int getTaRatedSndLoad()
    {
        return this.taRatedSndLoad;
    }

    public int getTaTurns()
    {
        return this.taTurns;
    }

    public int getTvLightLoad()
    {
        return this.tvLightLoad;
    }

    public String getTvPreCode()
    {
        return this.tvPreCode;
    }

    public int getTvRatedSndLoad()
    {
        return this.tvRatedSndLoad;
    }

    public int getTvTurns()
    {
        return this.tvTurns;
    }

    public String getVoltRatioCode()
    {
        return this.voltRatioCode;
    }

    public String getWindingConfigCode()
    {
        return this.windingConfigCode;
    }

    public void setCap(int paramInt)
    {
        this.cap = paramInt;
    }

    public void setChkDate(long paramLong)
    {
        this.chkDate = paramLong;
    }

    public void setFstRcCode(String paramString)
    {
        this.fstRcCode = paramString;
    }

    public void setInsulationMode(String paramString)
    {
        this.insulationMode = paramString;
    }

    public void setItId(int paramInt)
    {
        this.itId = paramInt;
    }

    public void setPf(int paramInt)
    {
        this.pf = paramInt;
    }

    public void setRatedFreqCode(String paramString)
    {
        this.ratedFreqCode = paramString;
    }

    public void setRcRatioCode(String paramString)
    {
        this.rcRatioCode = paramString;
    }

    public void setRotateCycle(int paramInt)
    {
        this.rotateCycle = paramInt;
    }

    public void setRvCode(String paramString)
    {
        this.rvCode = paramString;
    }

    public void setSndRvCode(String paramString)
    {
        this.sndRvCode = paramString;
    }

    public void setTaLightLoad(int paramInt)
    {
        this.taLightLoad = paramInt;
    }

    public void setTaPreCode(String paramString)
    {
        this.taPreCode = paramString;
    }

    public void setTaRatedSndLoad(int paramInt)
    {
        this.taRatedSndLoad = paramInt;
    }

    public void setTaTurns(int paramInt)
    {
        this.taTurns = paramInt;
    }

    public void setTvLightLoad(int paramInt)
    {
        this.tvLightLoad = paramInt;
    }

    public void setTvPreCode(String paramString)
    {
        this.tvPreCode = paramString;
    }

    public void setTvRatedSndLoad(int paramInt)
    {
        this.tvRatedSndLoad = paramInt;
    }

    public void setTvTurns(int paramInt)
    {
        this.tvTurns = paramInt;
    }

    public void setVoltRatioCode(String paramString)
    {
        this.voltRatioCode = paramString;
    }

    public void setWindingConfigCode(String paramString)
    {
        this.windingConfigCode = paramString;
    }

    public void writeToParcel(Parcel paramParcel, int paramInt)
    {
        super.writeToParcel(paramParcel, paramInt);
        paramParcel.writeInt(this.itId);
        paramParcel.writeString(this.insulationMode);
        paramParcel.writeString(this.windingConfigCode);
        paramParcel.writeString(this.rvCode);
        paramParcel.writeString(this.ratedFreqCode);
        paramParcel.writeInt(this.pf);
        paramParcel.writeInt(this.cap);
        paramParcel.writeString(this.rcRatioCode);
        paramParcel.writeString(this.sndRvCode);
        paramParcel.writeString(this.fstRcCode);
        paramParcel.writeInt(this.taRatedSndLoad);
        paramParcel.writeInt(this.taLightLoad);
        paramParcel.writeString(this.taPreCode);
        paramParcel.writeInt(this.taTurns);
        paramParcel.writeString(this.voltRatioCode);
        paramParcel.writeInt(this.tvRatedSndLoad);
        paramParcel.writeInt(this.tvLightLoad);
        paramParcel.writeString(this.tvPreCode);
        paramParcel.writeInt(this.tvTurns);
        paramParcel.writeLong(this.chkDate);
        paramParcel.writeInt(this.rotateCycle);
    }
}

